package com.sl.au.repository;

import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;


import com.sl.au.entity.EventTask;
import com.sl.au.entity.TransferTask;;

public interface TransferTaskRepository  extends JpaRepository<TransferTask, String>{
	@Query("select a from TransferTask a where a.eventId=?1")
	List<TransferTask> getTaskByEventId(String eventId);
	
	@Query("select a from TransferTask a where a.eventId=?1 order by a.eventTaskTime desc")
	List<TransferTask> getNewestTaskByEventId(String eventId);

}
